<?php
	$arr = array(
		array("id" => 1, "name" => "James"),
		array("id" => 2, "name" => "Iris")
	);
	$str = json_encode($arr);
	echo "Array => JSON: ".$str."<br/>";
	echo "JSON => Array: ";
	$arr = json_decode($str);
	print_r($arr);
?>